package com.hotacorp.opencloud.common.log.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.hotacorp.opencloud.common.commdata.LogBean;
import com.hotacorp.opencloud.common.commdata.Result;

/**
 * @Description:调用日志服务的addOpeLog方法
 * @version 0.5
 * @since JDK1.8
 * @author lwg
 * @copyright (c) 2020. All rights reserved.
 * @date 2020年1月16日 下午3:41:14
 */
@FeignClient(value="${log.servicename}", fallback = LoggingFeignHystric.class)
public interface LoggingFeign {

	@PostMapping("/anon/addOpeLog")
	public Result<?> addLog(@RequestBody LogBean log);

}
